﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Marmat.Foundation;
using Marmat.FrameWork;
using 测试项目.TestDemo;

namespace 测试项目
{
    class MenuItemBuilder : IMenuItemBuilder
    {
        public void Builder(List<IMenu> menus)
        {
            menus.Add(new Marmat.Foundation.Menu() { Name = "测试窗体" });
        }

        public void ItemClick(IMenu menu)
        {
            IMainForm mainForm = SystemCommand.GetService<IMainForm>();
            mainForm.AddForm(new Form1());
        }
    }
}